// JavaScript Document
$(function(){
	function redirect(url){
		window.location = url;
	}

	function confirmDelete(){
		if(confirm('Are you sure you want to delete this item ?')) return true;
		else return false;
	} 
	
	$('.confirmDelete').click(function(){
		if(confirmDelete()){
			url = $(this).attr('rel');
			redirect(url);
		}
	}); 
});
